package cn.zhaoyuening.schoolmates.service.impl;

import org.springframework.stereotype.Service;

import cn.zhaoyuening.schoolmates.dao.PhotosDao;
import cn.zhaoyuening.schoolmates.domain.Photos;
import cn.zhaoyuening.schoolmates.service.PhotosService;
@Service
public class PhotosServiceImpl extends BaseServiceImpl<Photos> implements PhotosService {
	
	@Override
	public void updateOrder(Long id, Integer order) {
		PhotosDao photosDao = (PhotosDao) this.getDao();
		Photos photos = photosDao.findById(id);
		photos.setOrder(order);
		photosDao.addOrEdit(photos);
	}

}
